package cn.edu.zhku.service;

import cn.edu.zhku.dto.UserDto;
import cn.edu.zhku.pojo.form.*;

import java.util.List;

public interface FormService {

    void addOne(Form form, Phenotype phenotype, PlantTraits plantTraits,
                BaclTraits baclTraits, MsclTraits msclTraits, SppTraits sppTraits,
                MainStem mainStem, FpolBranches fpolBranches, Branch branch,
                Petiole baclPetiole, Leaflet baclLeaflet, Petiole msclPetiole, Leaflet msclLeaflet,
                Pods pods);

    Form findById(Integer formId);

    boolean checkFormExistById(Integer formId);

    List<Form> findFormTea(UserDto userDto);

    void modifyOneSimple(Form form);

    void modifyOne(Form form, MainStem mainStem, FpolBranches fpolBranches, Branch branch,
                   Pods pods, Petiole baclPetiole, Leaflet baclLeaflet, Petiole msclPetiole,
                   Leaflet msclLeaflet);

}
